var status = -1;
var selectionLog = [];

function start() {
    action(1, 0, 0)
}

function action(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            if (!cm.isQuestFinished(58721) || cm.isQuestFinished(58722)) {
                cm.dispose();
                return
            }
            cm.forceCompleteQuest(58722);
            cm.curNodeEventEnd(true);
            cm.eventSKill(0);
            cm.setInGameDirectionMode(true, false, true);
            cm.inGameDirectionEvent_头顶图片(["Effect/OnUserEff.img/emotion/oh"], [0, 0, 0, 1, 0, 0, 0, 0]);
            cm.sendNormalTalk_Bottom("发生了什么事……？", 57, 0, false, true);
            cm.curNodeEventEnd(true)
        } else {
            if (status === a++) {
                cm.inGameDirectionEvent_PushMoveInfo(0, 300, 1225, -30)
            } else {
                if (status === a++) {
                    cm.inGameDirectionEvent_AskAnswerTime(999)
                } else {
                    if (status === a++) {
                        cm.sendNormalTalk_Bottom("看样子好像出事了……。", 57, 0, false, true)
                    } else {
                        if (status === a++) {
                            cm.cameraSwitch_PushSwitchMoveInfo("next00", 3000);
                            cm.sendNormalTalk_Bottom("我先去那边看看吧。", 57, 0, true, true)
                        } else {
                            if (status === a++) {
                                cm.inGameDirectionEvent_PushMoveInfo(1, 3000, 0, 0)
                            } else {
                                if (status === a++) {
                                    cm.inGameDirectionEvent_AskAnswerTime(3500)
                                } else {
                                    if (status === a++) {
                                        cm.eventSKill(0);
                                        cm.setInGameDirectionMode(false, true, false);
                                        cm.dispose()
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
};